<template>
  <!-- <div class="hello">{{ x }} - {{ y }}</div> -->
  <div class="hello">{{ position.x }} - {{ position.y }}</div>
</template>

<script>
import { useMousePosition } from "./move";
export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  setup() {
    const { position } = useMousePosition();
    // console.log(info);
    // ref
    // return { x, y };
    // return { position: info.position };
    return { position };
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
